package com.ssy.lingxi.purchase.repository.bidding;

import com.ssy.lingxi.purchase.entity.bidding.ExternalBiddingLog;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*采购竞价
*/
@Repository
public interface ExternalBiddingLogRepository extends JpaRepository<ExternalBiddingLog, Long> {

    List<ExternalBiddingLog> findAllByBiddingId(Long biddingId);

    List<ExternalBiddingLog> findAllByBiddingId(Long biddingId, Sort sort);

    List<ExternalBiddingLog> findAllByBiddingIdAndOperatedMemberIdAndOperatedMemberRoleId(Long biddingId, Long memberId, Long memberRoleId);

    boolean existsAllByBiddingId(Long biddingId);
}
